package com.liangzhong.model.stadium.stadiumDataManager
{
	
	import com.liangzhong.model.playerCenter.vo.PlayerVo;
	
	import flash.utils.ByteArray;

	/**
	 * 比赛球员信息 
	 * @author lake
	 * 
	 */	
	public class MatchPlayerVo extends PlayerVo
	{
		/**
		 *球员id 
		 */		
		public var id	   :int;
		/**
		 *等级 
		 */		
		public var grade  :int;
		/**
		 *头像地址 
		 */		
		public var headurl2 :String ;
		/**
		 *球员名字 
		 */		
		public var name	   :String;
		/**
		 *位置 
		 */		
		public var tplace :String = "";
		/**
		 *x 
		 */
		public var fx		:Number;
		/**
		 *Y 
		 */
		public var fy		:Number;
		/**
		 *进攻 (int)  
		 */
		public var s1:Number = 0;
		/**
		 *控球 (int) 
		 */
		public var s2:Number = 0;
		/**
		 *力量 (int)  
		 */
		public var s3:Number = 0;
		/**
		 *防守 (int)  
		 */
		public var s4:Number = 0;
		/**
		 *抢断 (int)  
		 */
		public var s5:Number = 0;
		/**
		 *速度 (int)  
		 */
		public var s6:Number = 0;
		/**
		 *位置 数字
		 * 球员位置：
			1.	GK
			2.	DF
			3.	MF
			4.	FW 
		 */		
		private var _placeIndex :int;
		
		public function MatchPlayerVo()
		{
		}
		/**
		 *设置获取位置标识 
		 * 
		 */		
		public function set placeIndex(value :int):void
		{
			_placeIndex = value;
			place = _placeIndex;
			turnPlace();
			tplace = place_String;
		}
		public function get placeIndex():int
		{
			return _placeIndex;
		}
		/**
		 * 解析数据 by ByteArray
		 * @param $obj
		 * 
		 */
		override public function analysisData(data:*):void
		{
			
		}
		/**
		 *解析场上球员结果返回 
		 */		
		public function analysisPlaceRes():void
		{
		}
		/**
		 *解析记录中数据
		 * @param obj
		 */		
		public function parseHistoryData(obj :Object):void
		{
			for(var str:String in obj)
			{
				if(this.hasOwnProperty(str))
				{
					this[str] = obj[str];
				}
			}
		}
	}
}